package com.csot.ry.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.csot.common.annotation.Excel;
import com.csot.common.core.domain.BaseEntity;

/**
 * 探活对象 t_detect_job
 * 
 * @author 刘沙
 * @date 2022-06-15
 */
public class TDetectJob extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 任务号 */
    @Excel(name = "任务号")
    private String jobNo;

    /** 任务状态 */
    @Excel(name = "任务状态")
    private String jobStatus;

    /** 任务开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date jobStart;

    /** 任务结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date jobEnd;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createName;

    /** 探活子表信息 */
    private List<TDetectJobSegment> tDetectJobSegmentList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setJobNo(String jobNo) 
    {
        this.jobNo = jobNo;
    }

    public String getJobNo() 
    {
        return jobNo;
    }
    public void setJobStatus(String jobStatus) 
    {
        this.jobStatus = jobStatus;
    }

    public String getJobStatus() 
    {
        return jobStatus;
    }
    public void setJobStart(Date jobStart) 
    {
        this.jobStart = jobStart;
    }

    public Date getJobStart() 
    {
        return jobStart;
    }
    public void setJobEnd(Date jobEnd) 
    {
        this.jobEnd = jobEnd;
    }

    public Date getJobEnd() 
    {
        return jobEnd;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }

    public List<TDetectJobSegment> getTDetectJobSegmentList()
    {
        return tDetectJobSegmentList;
    }

    public void setTDetectJobSegmentList(List<TDetectJobSegment> tDetectJobSegmentList)
    {
        this.tDetectJobSegmentList = tDetectJobSegmentList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jobNo", getJobNo())
            .append("jobStatus", getJobStatus())
            .append("jobStart", getJobStart())
            .append("jobEnd", getJobEnd())
            .append("createName", getCreateName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("tDetectJobSegmentList", getTDetectJobSegmentList())
            .toString();
    }
}
